#ifndef SENDFILE_H
#define SENDFILE_H

#include <QObject>
#include <QTcpSocket>

class SendFile : public QObject
{
    Q_OBJECT
public:
    explicit SendFile(QObject *parent = nullptr);

    void connectServer(unsigned short port, QString ip);

    void sendFile(QString path);
signals:
    void connectOK();
    void gameover();
    void curPercent(int percent);

private:
    QTcpSocket* m_tcp;
};

#endif // SENDFILE_H
